<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="format-detection" content="telephone=no,email=no,adress=no">
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath()%>/js/easyui/themes/metro/easyui.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/validate/validate.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/easyui/easyui.js"></script>
<script type="text/javascript">
	$(function() {
		$("#sform").validate({
			rules : {
				cbNo : {	required : true	},
crdNo : {	required : true	},
bnkNo : {	required : true	},
txnNo : {	required : true	},
cbType : {	required : true	},
cbOrder : {	required : true	},
cbCur : {	required : true	},
cbMoney : {	required : true,number : true},
cbRef : {	required : false	},
cbCard : {	required : false	},
cbTime : {	required : false	},
cbMark : {	required : false	},
cbInfo : {	required : false	},
cbAmount : {	required : true,number : true},
cbCode : {	required : true	},
cbMessage : {	required : true	},
cbState : {	required : true	},
cbDate : {	required : true	},
cbCstate : {	required : true	},
cbCdate : {	required : true	},
cbRemark : {	required : false	}
			},
			errorPlacement : function(error, element) {
				element.css("border-color","#1c3e57");
			},
		});
	});
</script>
</head>
<body>
 	<div class="easyui-panel" title="编辑面板" style="width:100%;" data-options="fit:true">
	<form id="sform" action="cb_save.html" method="post" enctype="multipart/form-data">
		<table width="90%">
				<tr>
					<td height="30" align="right" width="200"><b></b></td>
					<td width="300"><b>内容</b></td>
					<td><b>说明</b></td>
				</tr>
				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>
				<tr><td height="30" align="right">编号 : </td><td><input type="text" placeholder="编号" name="cbNo" id="cbNo" value="<s:property value="cbBean.cbNo"/>"/></td><td>编号</td></tr>
<tr><td height="30" align="right">关联卡号 : </td><td><input type="text" placeholder="关联卡号" name="crdNo" id="crdNo" value="<s:property value="cbBean.crdNo"/>"/></td><td>关联卡号</td></tr>
<tr><td height="30" align="right">收单银行 : </td><td><input type="text" placeholder="收单银行" name="bnkNo" id="bnkNo" value="<s:property value="cbBean.bnkNo"/>"/></td><td>收单银行</td></tr>
<tr><td height="30" align="right">关联交易号 : </td><td><input type="text" placeholder="关联交易号" name="txnNo" id="txnNo" value="<s:property value="cbBean.txnNo"/>"/></td><td>关联交易号</td></tr>
<tr><td height="30" align="right">类型 : </td><td><input type="text" placeholder="类型" name="cbType" id="cbType" value="<s:property value="cbBean.cbType"/>"/></td><td>类型</td></tr>
<tr><td height="30" align="right">上送流水号 : </td><td><input type="text" placeholder="上送流水号" name="cbOrder" id="cbOrder" value="<s:property value="cbBean.cbOrder"/>"/></td><td>上送流水号</td></tr>
<tr><td height="30" align="right">上送币种 : </td><td><input type="text" placeholder="上送币种" name="cbCur" id="cbCur" value="<s:property value="cbBean.cbCur"/>"/></td><td>上送币种</td></tr>
<tr><td height="30" align="right">上送金额 : </td><td><input type="text" placeholder="上送金额" name="cbMoney" id="cbMoney" value="<s:if test="cbBean.cbMoney!=null"><s:text name="global.format.number"><s:param value="cbBean.cbMoney"/></s:text></s:if>" onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td><td>上送金额</td></tr>
<tr><td height="30" align="right">返回银行单号 : </td><td><input type="text" placeholder="返回银行单号" name="cbRef" id="cbRef" value="<s:property value="cbBean.cbRef"/>"/></td><td>返回银行单号</td></tr>
<tr><td height="30" align="right">返回原交易卡号 : </td><td><input type="text" placeholder="返回原交易卡号" name="cbCard" id="cbCard" value="<s:property value="cbBean.cbCard"/>"/></td><td>返回原交易卡号</td></tr>
<tr><td height="30" align="right">返回原交易日期 : </td><td><input type="text" placeholder="返回原交易日期" name="cbTime" id="cbTime" value="<s:property value="cbBean.cbTime"/>"/></td><td>返回原交易日期</td></tr>
<tr><td height="30" align="right">返回码 : </td><td><input type="text" placeholder="返回码" name="cbMark" id="cbMark" value="<s:property value="cbBean.cbMark"/>"/></td><td>返回码</td></tr>
<tr><td height="30" align="right">返回信息 : </td><td><input type="text" placeholder="返回信息" name="cbInfo" id="cbInfo" value="<s:property value="cbBean.cbInfo"/>"/></td><td>返回信息</td></tr>
<tr><td height="30" align="right">出账金额 : </td><td><input type="text" placeholder="出账金额" name="cbAmount" id="cbAmount" value="<s:if test="cbBean.cbAmount!=null"><s:text name="global.format.number"><s:param value="cbBean.cbAmount"/></s:text></s:if>" onkeyup="value=value.replace(/[^\d\.]/g,'')" /></td><td>出账金额</td></tr>
<tr><td height="30" align="right">出账码 : </td><td><input type="text" placeholder="出账码" name="cbCode" id="cbCode" value="<s:property value="cbBean.cbCode"/>"/></td><td>出账码</td></tr>
<tr><td height="30" align="right">出账信息 : </td><td><input type="text" placeholder="出账信息" name="cbMessage" id="cbMessage" value="<s:property value="cbBean.cbMessage"/>"/></td><td>出账信息</td></tr>
<tr><td height="30" align="right">出账状态 : </td><td><s:radio id="cbState" name="cbState" list="#{'0':'无效','1':'有效'}"  value="cbBean.cbState"></s:radio></td><td>出账状态</td></tr>
<tr><td height="30" align="right">出账日期 : </td><td><input type="text" placeholder="出账日期" name="cbDate" id="cbDate" value="<s:if test="cbBean.cbDate!=null"><s:text name="global.format.date"><s:param value="cbBean.cbDate"/></s:text></s:if>" onclick="WdatePicker();" /></td><td>出账日期</td></tr>
<tr><td height="30" align="right">对账状态 : </td><td><s:radio id="cbCstate" name="cbCstate" list="#{'0':'无效','1':'有效'}"  value="cbBean.cbCstate"></s:radio></td><td>对账状态</td></tr>
<tr><td height="30" align="right">对账日期 : </td><td><input type="text" placeholder="对账日期" name="cbCdate" id="cbCdate" value="<s:if test="cbBean.cbCdate!=null"><s:text name="global.format.date"><s:param value="cbBean.cbCdate"/></s:text></s:if>" onclick="WdatePicker();" /></td><td>对账日期</td></tr>
<tr><td height="30" align="right">备注 : </td><td><input type="text" placeholder="备注" name="cbRemark" id="cbRemark" value="<s:property value="cbBean.cbRemark"/>"/></td><td>备注</td></tr>


				<tr>
					<td></td>
					<td colspan="2"><hr /></td>
				</tr>

				<tr>
					<td height="30" align="right"></td>
					<td><input type="button" class="submit" value="提交单据" onclick="if($('#sform').valid()){$('#sform').submit();}" /> <input type="button" class="submit" value="返回上级" onclick="history.go(-1);" /></td>
					<td></td>
				</tr>
			</table>
	</form>
    </div>
</body>
</html>

